package com.astrocsr.domain.web;

import java.util.Date;

import com.astrocsr.common.util.DateUtil;

public class GroupInfo implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	private Long groupId;
	private String groupCode;
	private String groupName;
	private String parentCode;
	private String createdBy;
	private Date createdDate;
	private String updatedBy;
	private Date updatedDate;
	// Constructors

	/** default constructor */
	public GroupInfo() {
	}

	public GroupInfo(String groupCode, String groupName, String parentCode, String createdBy, Date createdDate) {
		this.groupCode = groupCode;
		this.groupName = groupName;
		this.parentCode = parentCode;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public String getGroupCode() {
		return groupCode;
	}

	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public String getDisplayCreatedDate() {
		return (createdDate != null)? DateUtil.formatLocalDashTime(createdDate): "";
	}
	
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}


	
}